<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
    
  </head>
  <body>
    <form method="POST" action="/test">
      <input type="button" onclick="get()" value="get">
      <input type="text" name="user" value="iampost">
      <input type="submit" value="post">
      </form>
      <script>
          function get(){
            window.location = "/test?user=Iamget"
          }
      </script>
  </body>
</html>